let mongodb = require("../server/config");

/*
* 留言数据模型
* */

let Schema = mongodb.mongoose.Schema;

let messageSchema = new Schema({
  userName: {type: String},  // 姓名
  phoneNumber: {type: Number},  // 手机号
  email: {type: String},  // 邮箱
  message: {type: String},  // 留言
});

let messageModel = mongodb.mongoose.model("messages", messageSchema);

exports.messageList = messageModel;
